package algorithm.thread_demo;

public class MyThread extends Thread{
    public static void main(String[] args) {
        new MyThread().start();
        System.out.println("over");
    }
    public MyThread() {
        super();
        System.out.println("当前线程的名字(this)="+this.getName());
        System.out.println("当前线程的名字(Mythread)="+Thread.currentThread().getName());
    }

    @Override
    public void run() {
        System.out.println("当前线程的名字="+Thread.currentThread().getName());
    }
}
